package service;

import mapper.CompanyMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.Company;
import utils.BeanMapUtils;
import utils.MapParameter;

import java.util.List;
import java.util.Map;

@Service
public class CompanyServiceImpl implements CompanyService{
    @Autowired
    CompanyMapper companyMapper;
    public List<Company> query(Company company) {
        Map<String, Object> map = MapParameter.getInstance().put(BeanMapUtils.beanToMap(company)).getMap();
        return companyMapper.query(map);
//        System.out.println(lists);
//        return BeanMapUtils.beanToMap(lists);
    }
}
